
const store = {
    state: {
        sarr: [11, 22, 33]
    },
    actions: {
        sarrpush(newState: { sarr: number[] }, action: { type: string, val: number }) {
            newState.sarr.push(action.val)
        }
    },

    actionNames: {}
}
let actionNames = {}

for (let key in store.actions) {
    actionNames[key] = key
}
store.actionNames = actionNames;

export default store